[Backport 2.x] Compress and cache cluster state during validate join request (#7321)#7945
Merged
andrross merged 2 commits intoopensearch-project:2.xfrom Jun 22, 2023
Merged
Conversation
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## 2.x #7945 +/- ##
============================================
- Coverage 70.64% 70.58% -0.07%
+ Complexity 56851 56780 -71
============================================
Files 4703 4704 +1
Lines 269104 269091 -13
Branches 39774 39771 -3
============================================
- Hits 190118 189932 -186
- Misses 62702 62833 +131
- Partials 16284 16326 +42
|
bcde254 to
91f9db9
Compare
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Member
|
@andrross Can you please rebase and iterate to green? |
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Show resolved
Hide resolved
91f9db9 to
c785e9f
Compare
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
c785e9f to
fb56099
Compare
Contributor
Gradle Check (Jenkins) Run Completed with:
|
andrross
added a commit
to andrross/OpenSearch
that referenced
this pull request
Jun 20, 2023
This change was backported to 2.x in opensearch-project#7945. Signed-off-by: Andrew Ross <andrross@amazon.com>
6 tasks
kotwanikunal
approved these changes
Jun 20, 2023
fb56099 to
0dfe96e
Compare
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Member
Author
|
Flaky test: #7592 |
…arch-project#7321) * Compress and cache cluster state during validate join request Signed-off-by: Aman Khare <amkhar@amazon.com> * Add changelog and license Signed-off-by: Aman Khare <amkhar@amazon.com> * Add javadoc and correct styling Signed-off-by: Aman Khare <amkhar@amazon.com> * Add new handler for sending compressed cluster state in validate join flow and refactor code Signed-off-by: Aman Khare <amkhar@amazon.com> * Refactor util method Signed-off-by: Aman Khare <amkhar@amazon.com> * optimize imports Signed-off-by: Aman Khare <amkhar@amazon.com> * Use cluster state version based cache instead of time based cache Signed-off-by: Aman Khare <amkhar@amazon.com> * style fix Signed-off-by: Aman Khare <amkhar@amazon.com> * fix styling 2 Signed-off-by: Aman Khare <amkhar@amazon.com> * Use concurrent hashmap instead of cache, add UT class for ClusterStateUtils Signed-off-by: Aman Khare <amkhar@amazon.com> * style fix Signed-off-by: Aman Khare <amkhar@amazon.com> * Use AtomicReference instead of ConcurrentHashMap Signed-off-by: Aman Khare <amkhar@amazon.com> * Use method overloading to simplify the caller code Signed-off-by: Aman Khare <amkhar@amazon.com> * Resolve conflicts Signed-off-by: Aman Khare <amkhar@amazon.com> * Change code structure to separate the flow for JoinHelper and PublicationTransportHelper Signed-off-by: Aman Khare <amkhar@amazon.com> * Remove unnecessary input.setVersion line Co-authored-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Aman Khare <85096200+amkhar@users.noreply.github.com> --------- Signed-off-by: Aman Khare <amkhar@amazon.com> Signed-off-by: Aman Khare <85096200+amkhar@users.noreply.github.com> Co-authored-by: Aman Khare <amkhar@amazon.com> Co-authored-by: Andrew Ross <andrross@amazon.com> (cherry picked from commit b17c88c)
Signed-off-by: Andrew Ross <andrross@amazon.com>
0dfe96e to
daeaa52
Compare
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
andrross
added a commit
to andrross/OpenSearch
that referenced
this pull request
Jun 22, 2023
This change was backported to 2.x in opensearch-project#7945. Signed-off-by: Andrew Ross <andrross@amazon.com>
kotwanikunal
pushed a commit
that referenced
this pull request
Jun 22, 2023
This change was backported to 2.x in #7945. Signed-off-by: Andrew Ross <andrross@amazon.com>
gaiksaya
pushed a commit
to gaiksaya/OpenSearch
that referenced
this pull request
Jun 26, 2023
…request (opensearch-project#7321) (opensearch-project#7945) * Compress and cache cluster state during validate join request (opensearch-project#7321) * Compress and cache cluster state during validate join request Signed-off-by: Aman Khare <amkhar@amazon.com> * Add changelog and license Signed-off-by: Aman Khare <amkhar@amazon.com> * Add javadoc and correct styling Signed-off-by: Aman Khare <amkhar@amazon.com> * Add new handler for sending compressed cluster state in validate join flow and refactor code Signed-off-by: Aman Khare <amkhar@amazon.com> * Refactor util method Signed-off-by: Aman Khare <amkhar@amazon.com> * optimize imports Signed-off-by: Aman Khare <amkhar@amazon.com> * Use cluster state version based cache instead of time based cache Signed-off-by: Aman Khare <amkhar@amazon.com> * style fix Signed-off-by: Aman Khare <amkhar@amazon.com> * fix styling 2 Signed-off-by: Aman Khare <amkhar@amazon.com> * Use concurrent hashmap instead of cache, add UT class for ClusterStateUtils Signed-off-by: Aman Khare <amkhar@amazon.com> * style fix Signed-off-by: Aman Khare <amkhar@amazon.com> * Use AtomicReference instead of ConcurrentHashMap Signed-off-by: Aman Khare <amkhar@amazon.com> * Use method overloading to simplify the caller code Signed-off-by: Aman Khare <amkhar@amazon.com> * Resolve conflicts Signed-off-by: Aman Khare <amkhar@amazon.com> * Change code structure to separate the flow for JoinHelper and PublicationTransportHelper Signed-off-by: Aman Khare <amkhar@amazon.com> * Remove unnecessary input.setVersion line Co-authored-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Aman Khare <85096200+amkhar@users.noreply.github.com> --------- Signed-off-by: Aman Khare <amkhar@amazon.com> Signed-off-by: Aman Khare <85096200+amkhar@users.noreply.github.com> Co-authored-by: Aman Khare <amkhar@amazon.com> Co-authored-by: Andrew Ross <andrross@amazon.com> (cherry picked from commit b17c88c) * Change version guard to 2.9.0 Signed-off-by: Andrew Ross <andrross@amazon.com> --------- Signed-off-by: Andrew Ross <andrross@amazon.com> Co-authored-by: Aman Khare <85096200+amkhar@users.noreply.github.com>
imRishN
pushed a commit
to imRishN/OpenSearch
that referenced
this pull request
Jun 27, 2023
This change was backported to 2.x in opensearch-project#7945. Signed-off-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Rishab Nahata <rnnahata@amazon.com>
sudarshan-baliga
pushed a commit
to Gaurav614/OpenSearch
that referenced
this pull request
Jun 29, 2023
This change was backported to 2.x in opensearch-project#7945. Signed-off-by: Andrew Ross <andrross@amazon.com>
shiv0408
pushed a commit
to Gaurav614/OpenSearch
that referenced
this pull request
Apr 25, 2024
This change was backported to 2.x in opensearch-project#7945. Signed-off-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backports #7321 to 2.x